﻿@{
    Layout = "_LayoutUnAuth";
    ViewData["Title"] = "用户登陆";
}

<div style="margin-top:10%;margin-left:auto;margin-right:auto;width:480px;">
    <div class="panel panel-success" data-toggle="form" data-field="UserLogin" data-size="12,4,7">
        <div class="panel-heading">
            <span>登陆</span>
        </div>
        <div class="panel-body">
            <div class="col-md-12">
                <div class="row">
                    <input data-field="UserName" name="UserName" data-label="用户名" data-icon="glyphicon glyphicon-user" />
                    <input data-field="Password" name="Password" type="password" data-label="密码" data-icon="glyphicon glyphicon-lock" />
                </div>
            </div>
        </div>
        <div class="panel-footer">
            <div class="row">
                <div class="col-md-6 col-md-offset-4">
                    <button class="btn btn-default" style="width:80px;margin-left:0px" data-button="post" data-url="/api/Accounts/Login" data-success="#:Account.onLoginSuccess" data-success-text="登陆成功" data-enter-press="true">提交</button>
                </div>
            </div>
        </div>
    </div>
</div>

<style>
    [data-toggle="form"] .form-group {
        margin-bottom: 15px;
        margin-top: 20px;
        padding-right: 30px;
    }
</style>